package com.ea.mapper;

import com.ea.domain.entity.OrderFormLog;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author NAME-L
 * @Description TODO
 * @className OrderFormLogMapper
 * @date 2022-12-13 22:37:15
 */
@Mapper
public interface OrderFormLogMapper {

    /**
     * 添加日志记录
     * @param orderFormLog
     */
    void insertOrderLog(OrderFormLog orderFormLog);

    /**
     * 批量添加日志记录
     * @param list
     */
    void insertBatchLog(List<OrderFormLog> list);

    /**
     * 根据logId添加订单日志
     * @param msg
     * @param orderId
     * @param logId
     * @param operator
     */
    void insertLogByLogId(@Param("msg") String msg,@Param("orderId")  Long orderId, @Param("logId") Long logId, @Param("operator") String operator);

    /**
     * 根据订单查询日志记录
     * @param orderId
     * @return
     */
    List<OrderFormLog> selectLogByOrderId(Long orderId);

}
